cc.Class({
	extends: cc.Component,

	properties: {
		loadingPar: cc.Node,
		healthyGame: cc.Node,
	},

	onLoad() {
		cc.vv.tools.resLoader("prefab", cc.vv.warehouse.prefab, cc.Prefab);
	},

	start() {},

	update(dt) {
		if (cc.vv.hasLoadResCount >= cc.vv.AllResCount) {
			cc.vv.hasLoadResCount = 0;
			this.healthyGame.active = false;
			this.loadingPar.active = true;
		}
	},
});
